﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WinformToolkit.Drawing
{
    /// <summary>
    /// 保存画图上下文信息
    /// </summary>
    public class DrawingContext
    {
        /// <summary>
        /// 画图对象
        /// </summary>
        public Graphics Graphics { get; set; }

        /// <summary>
        /// 缩放等级
        /// </summary>
        public float Scale { get; set; }

        /// <summary>
        /// 缩放后的画布大小和位置
        /// </summary>
        public RectangleF CanvasRectangle { get; set; }

        /// <summary>
        /// 画布原始的宽度
        /// </summary>
        public float CanvasWidth { get; set; }

        /// <summary>
        /// 画布原始高度
        /// </summary>
        public float CanvasHeight { get; set; }
    }
}
